package org.ajc.org.mapper;

import org.ajc.auth.dto.LoginDTO;
import org.ajc.base.mapper.BaseMapper;
import org.ajc.org.domain.Employee;
import org.ajc.org.dto.RoleDTO;
import org.ajc.org.query.EmployeeQuery;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
public interface EmployeeMapper extends BaseMapper<Employee> {

    List<Employee> deptTree();

    Employee queryByUsername(LoginDTO loginDTO);

    List<String> queryPermissionsById(Long id);

    void batchInsert(List<Employee> list);

    List<Employee> selectByKey(EmployeeQuery empQuery);

    List<String> queryRoleByEmpId(Long id);

    void deleteRoleById(Long id);

    void setRole(RoleDTO roleDTO);
}


